package com.health.action;

import net.sf.json.JsonConfig;

import com.health.util.DateJsonValueProcessor;
import com.opensymphony.xwork2.ActionSupport;

/**
 * @author DirkMurphy
 * 
 * @blog http://www.cnblogs.com/dirkmurphyjava/
 * 
 * @date
 * 
 * @introduction 
 *  All Struts2's actions FatherClass, extends ActionSupport
 */
public class ActionInterface extends ActionSupport
{
	public static JsonConfig	jsonConfig	= new JsonConfig();
	static
	{
		initConverter(jsonConfig);
	}

	public static void initConverter(JsonConfig jsonConfig)
	{
		jsonConfig.registerJsonValueProcessor(java.util.Date.class,
				new DateJsonValueProcessor());
	}
}
